<!-- DEFAULT_CONTENT_FRAME -->
	<div class="container-fluid">
<?php if (isset($project) && $enableProjectNavBar) 
	{
	$projectMemberType = null;
	if ( isset($projectMember) ) {
		$projectMemberType = $projectMember->type;
	}
	?>
					<div class="navbar ">
						<div class="navbar-inner">
							<div class="container-fluid">
								<a class="brand" href="<?php echo controller_base_path($requestContext); ?>/Project/<?php echo $project->sid; ?>">Goal: <?php echo $project->name; ?></a>
								
<?php if ($projectMemberType == 'owner') { ?>
								<div class="nav-collapse ">
									<ul class="nav">
										<li><a href="<?php echo controller_base_path($requestContext); ?>/Project/<?php echo $project->sid; ?>/form"><i class="icon-cog"></i>Edit</a></li>
										<!--<li><a href="<?php echo controller_base_path($requestContext); ?>/Project/<?php echo $project->sid; ?>/milestonesform">Milestones</a></li>-->
									</ul>
								</div>
<?php } ?>
								
								<div class="nav-collapse pull-right">
									<ul class="nav">
										<li <?php if ($_controller == "Resource") { ?>class="active"<?php }?> ><a href="<?php echo controller_base_path($requestContext); ?>/Project/<?php echo $project->sid; ?>/resources"><i class="icon-file"></i>Resources</a></li>
										<li <?php if ($_action == "showmembers") { ?>class="active"<?php }?> ><a href="<?php echo controller_base_path($requestContext); ?>/Project/<?php echo $project->sid; ?>/showmembers"><i class="icon-user"></i>Members</a></li>
										<li <?php if ($_controller == "Stats") { ?>class="active"<?php }?> ><a href="#stats"><i class="icon-signal"></i>Statistics</a></li>
									</ul>
								</div><!--/.nav-collapse -->
								</ul>
							</div>
						</div>
					</div>
<?php } ?>

<?php 
$contentSpan = "span9";
if ($paneRight == null) { 
	$contentSpan  = "span12";
}
?>
					<div class="row-fluid">
						<div class="<?php echo $contentSpan ?>"> <!-- SEEDNIA: CONTENT {{ -->
<?php echo $content ?>		
						</div> <!-- }} SEEDNIA: CONTENT -->

<?php if ($paneRight != null) { ?>
						<div class="span3"> <!-- SEEDNIA: RIGHT SIDEBAR (INSIDE CENTER) {{ -->	
<?php echo $paneRight ?>
						</div> <!-- SEEDNIA: RIGHT SIDEBAR (INSIDE CENTER) {{ -->
<?php } ?>
							
					</div>  <!-- /row (inner) -->
	</div> <!-- Contaainer -->

<script>
$(document).ready(function() {
	$('.dropdown-toggle').dropdown();
});		
</script>